\section{fsm\+\_\+slave.\+c File Reference}
\label{fsm__slave_8c}\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}


Ether\+C\+AT slave (S\+DO) state machine.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: I\+D\+LE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: R\+E\+A\+DY. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Check for pending S\+DO requests and process one. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: S\+D\+O\+\_\+\+R\+E\+Q\+U\+E\+ST. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Check for pending register requests and process one. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: Register request. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Check for pending FoE requests and process one. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: F\+OE R\+E\+Q\+U\+E\+ST. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Check for pending SoE requests and process one. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Slave state\+: S\+O\+E\+\_\+\+R\+E\+Q\+U\+E\+ST. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$slave)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Executes the current state of the state machine. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Sets the current state of the state machine to R\+E\+A\+DY. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready} (const \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Returns, if the F\+SM is currently not busy and ready to execute. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT slave (S\+DO) state machine. 



\subsection{Function Documentation}
\mbox{\label{fsm__slave_8c_a5c3b32656d605af3c1f2e5534568b49a}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+idle (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: I\+D\+LE. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 177 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_ae45b917e77b92b3e41df89720d33114c}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+ready (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: R\+E\+A\+DY. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 189 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a69201c3dc1cb3155a6ca50cb7f33869c}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+sdo (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Check for pending S\+DO requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if an S\+DO request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 221 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a81403b6006691c9b4daf67d5da9feb2a}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+sdo\+\_\+request (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: S\+D\+O\+\_\+\+R\+E\+Q\+U\+E\+ST. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 271 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a1e2f2f2ceff8817c26b401394efe0e6e}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+reg (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Check for pending register requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if a register request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 307 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a1da03c24b580882065b01e431c0ed82e}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+reg\+\_\+request (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: Register request. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 373 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a8efbf4fab101d922fef86e335eec1f97}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+foe (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Check for pending FoE requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if an FoE request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 425 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_ab5d34b7d8393ff86923a42ced668c0b9}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+foe\+\_\+request (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: F\+OE R\+E\+Q\+U\+E\+ST. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 465 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_aee4b2c5da4c8811dc81fd40cc25ac80c}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe@{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+action\+\_\+process\+\_\+soe (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Check for pending SoE requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if a request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 502 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_ac379741b8127b8228d9119480db233fb}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request@{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+state\+\_\+soe\+\_\+request (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Slave state\+: S\+O\+E\+\_\+\+R\+E\+Q\+U\+E\+ST. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & Datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 552 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_ab7af644e2e05a661f5dedfc65daa423e}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+init@{ec\+\_\+fsm\+\_\+slave\+\_\+init}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+init@{ec\+\_\+fsm\+\_\+slave\+\_\+init}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+init()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+init (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+slave\+\_\+t} $\ast$}]{slave }\end{DoxyParamCaption})}



Constructor. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em slave} & Ether\+C\+AT slave. \\
\hline
\end{DoxyParams}


Definition at line 60 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_aaf633228f4ba73115d911fae6ede334d}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+clear@{ec\+\_\+fsm\+\_\+slave\+\_\+clear}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+clear@{ec\+\_\+fsm\+\_\+slave\+\_\+clear}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+clear()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+clear (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Destructor. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 85 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a64e44cb68fa46489e34b0f6f98a2d450}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+exec@{ec\+\_\+fsm\+\_\+slave\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+exec@{ec\+\_\+fsm\+\_\+slave\+\_\+exec}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Executes the current state of the state machine. 

\begin{DoxyReturn}{Returns}
1 if {\itshape datagram} was used, else 0. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
{\em datagram} & New datagram to use. \\
\hline
\end{DoxyParams}


Definition at line 123 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_a3e9b702c8379fb8324826a220847a539}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+slave\+\_\+set\+\_\+ready (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Sets the current state of the state machine to R\+E\+A\+DY. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
\end{DoxyParams}


Definition at line 148 of file fsm\+\_\+slave.\+c.

\mbox{\label{fsm__slave_8c_af12d069fda4382f991468ea84ff572a8}} 
\index{fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}!ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready@{ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready}!fsm\+\_\+slave.\+c@{fsm\+\_\+slave.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+is\+\_\+ready (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Returns, if the F\+SM is currently not busy and ready to execute. 

\begin{DoxyReturn}{Returns}
Non-\/zero if ready. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Slave state machine. \\
\hline
\end{DoxyParams}


Definition at line 164 of file fsm\+\_\+slave.\+c.

